package org.mspring.crm.entity.permission;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.extjs.gxt.ui.client.data.BeanModelTag;

/**
 * McrmTree entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "item")
public class Item implements java.io.Serializable, BeanModelTag {
    private Integer id;
    private Integer parent;
    private String name;
    private Boolean open;
    private String view;
    private String icon;
    private String iconOpen;
    private String font;
    private Boolean isParent;
    private Boolean closeable;
    private Integer type;
    private Boolean selected;

    @Id
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "parent", nullable = false)
    public Integer getParent() {
        return parent;
    }

    public void setParent(Integer parent) {
        this.parent = parent;
    }

    @Column(name = "name", nullable = false, length = 200)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "open")
    public Boolean getOpen() {
        return open;
    }

    public void setOpen(Boolean open) {
        this.open = open;
    }

    @Column(name = "view", length = 300)
    public String getView() {
        return view;
    }

    public void setView(String view) {
        this.view = view;
    }

    @Column(name = "icon", length = 300)
    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    @Column(name = "iconOpen", length = 300)
    public String getIconOpen() {
        return iconOpen;
    }

    public void setIconOpen(String iconOpen) {
        this.iconOpen = iconOpen;
    }

    @Column(name = "font", length = 300)
    public String getFont() {
        return font;
    }

    public void setFont(String font) {
        this.font = font;
    }

    @Column(name = "is_parent")
    public Boolean getIsParent() {
        return isParent;
    }

    public void setIsParent(Boolean isParent) {
        this.isParent = isParent;
    }

    @Column(name = "closeable")
    public Boolean getCloseable() {
        return closeable;
    }

    public void setCloseable(Boolean closeable) {
        this.closeable = closeable;
    }

    @Column(name = "type")
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Column(name = "selected")
    public Boolean getSelected() {
        return selected;
    }

    public void setSelected(Boolean selected) {
        this.selected = selected;
    }

}